
apiready = function(){
headerstatus()
var uid = api.pageParam.id;
openDetailframe(uid) 

}
  function openDetailframe(uid){
	
	var width = api.winWidth;
	var header = $api.byId('header');
	var headerPos = $api.offset(header);

	var height = api.winHeight - headerPos.h;
		api.closeFrame({
	        name:'cart'
	    })
		api.openFrame({
			name:'winRecord',
			url:'./winRecord.html',
			rect:{
				 x: 0,
	             y: headerPos.h,
	             w: width,
	             h: height
			},
			customRefreshHeader: 'UIPullRefresh',
			pageParam: {uid: uid},
			reload:true
	
		});
	}